<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
	<%
		String contextPath = request.getContextPath();
		String basePath = request.getScheme() + "://"
				+ request.getServerName() + ":" + request.getServerPort()
				+ contextPath + "/";
	%>
	<base href="<%=basePath%>">
	<meta charset="utf-8">
	<link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
	<link rel="stylesheet" href="assets/css/font-awesome.min.css"/>
	<!--[if IE 7]>
	<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css"/>
	<![endif]-->
	<link rel="stylesheet" href="assets/css/ace.min.css"/>
	<link rel="stylesheet" href="assets/css/ace-rtl.min.css"/>
	<link rel="stylesheet" href="assets/css/ace-skins.min.css"/>
	<link rel="stylesheet" href="css/style.css"/>
	<!--[if lte IE 8]>
	<link rel="stylesheet" href="assets/css/ace-ie.min.css"/>
	<![endif]-->
	<script src="assets/js/ace-extra.min.js"></script>
	<!--[if lt IE 9]>
	<script src="assets/js/html5shiv.js"></script>
	<script src="assets/js/respond.min.js"></script>
	<![endif]-->
	<!--[if !IE]> -->
	<script src="js/jquery-1.9.1.min.js"></script>
	<!-- <![endif]-->
	<!--[if IE]>
	<script type="text/javascript">window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>" + "<" + "script>");</script>
	<![endif]-->
	<script type="text/javascript">
		if ("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" +
				"script>");
	</script>
	<script src="assets/js/bootstrap.min.js"></script>
	<script src="assets/js/typeahead-bs2.min.js"></script>
	<!--[if lte IE 8]>
	<script src="assets/js/excanvas.min.js"></script>
	<![endif]-->
	<script src="assets/js/ace-elements.min.js"></script>
	<script src="assets/js/ace.min.js"></script>
	<script src="assets/layer/layer.js" type="text/javascript"></script>
	<script src="assets/laydate/laydate.js" type="text/javascript"></script>
	<script src="js/jquery.nicescroll.js" type="text/javascript"></script>

	<script type="text/javascript">
		$(function () {
			var cid = $('#nav_list> li>.submenu');
			cid.each(function (i) {
				$(this).attr('id', "Sort_link_" + i);

			})
		})
		jQuery(document).ready(function () {
			$.each($(".submenu"), function () {
				var $aobjs = $(this).children("li");
				var rowCount = $aobjs.size();
				var divHeigth = $(this).height();
				$aobjs.height(divHeigth / rowCount);
			});
			//初始化宽度、高度

			$("#main-container").height($(window).height() - 76);
			$("#iframe").height($(window).height() - 140);

			$(".sidebar").height($(window).height() - 99);
			var thisHeight = $("#nav_list").height($(window).outerHeight() - 173);
			$(".submenu").height();
			$("#nav_list").children(".submenu").css("height", thisHeight);

			//当文档窗口发生改变时 触发
			$(window).resize(function () {
				$("#main-container").height($(window).height() - 76);
				$("#iframe").height($(window).height() - 140);
				$(".sidebar").height($(window).height() - 99);

				var thisHeight = $("#nav_list").height($(window).outerHeight() - 173);
				$(".submenu").height();
				$("#nav_list").children(".submenu").css("height", thisHeight);
			});
			$(document).on('click', '.iframeurl', function () {
				var cid = $(this).attr("name");
				var cname = $(this).attr("title");
				$("#iframe").attr("src", cid).ready();
				$("#Bcrumbs").attr("href", cid).ready();
				$(".Current_page a").attr('href', cid).ready();
				$(".Current_page").attr('name', cid);
				$(".Current_page").html(cname).css({
					"color": "#333333",
					"cursor": "default"
				}).ready();
				$("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display", "none").ready();
				$("#parentIfour").html('').css("display", "none").ready();
			});


		});
		/******/
		$(document).on('click', '.link_cz > li', function () {
			$('.link_cz > li').removeClass('active');
			$(this).addClass('active');
		});


		/*********************点击事件*********************/
		$(document).ready(function () {
			$('#nav_list,.link_cz').find('li.home').on('click', function () {
				$('#nav_list,.link_cz').find('li.home').removeClass('active');
				$(this).addClass('active');
			});

			//时间设置
			function currentTime() {
				var d = new Date(),
						str = '';
				str += d.getFullYear() + '年';
				str += d.getMonth() + 1 + '月';
				str += d.getDate() + '日';
				str += d.getHours() + '时';
				str += d.getMinutes() + '分';
				str += d.getSeconds() + '秒';
				return str;
			}

			setInterval(function () {
				$('#time').html(currentTime)
			}, 1000);
			//修改密码
			$('.change_Password').on('click', function () {
				layer.open({
					type: 1,
					title: '修改密码',
					area: ['300px', '300px'],
					shadeClose: true,
					content: $('#change_Pass'),
					btn: ['确认修改'],
					yes: function (index, layero) {
						if ($("#password").val() == "") {
							layer.alert('原密码不能为空!', {
								title: '提示框',
								icon: 0,

							});
							return false;
						}
						if ($("#Nes_pas").val() == "") {
							layer.alert('新密码不能为空!', {
								title: '提示框',
								icon: 0,

							});
							return false;
						}

						if ($("#c_mew_pas").val() == "") {
							layer.alert('确认新密码不能为空!', {
								title: '提示框',
								icon: 0,

							});
							return false;
						}
						if (!$("#c_mew_pas").val || $("#c_mew_pas").val() != $("#Nes_pas").val()) {
							layer.alert('密码不一致!', {
								title: '提示框',
								icon: 0,

							});
							return false;
						} else {
							layer.alert('修改成功！', {
								title: '提示框',
								icon: 1,
							});
							layer.close(index);
						}
					}
				});
			});
			$('#Exit_system').on('click', function () {
				layer.confirm('是否确定退出系统？', {
							btn: ['是', '否'], //按钮
							icon: 2,
						},
						function () {
							location.href = "login.html";

						});
			});
		});

		function link_operating(name, title) {
			var cid = $(this).name;
			var cname = $(this).title;
			$("#iframe").attr("src", cid).ready();
			$("#Bcrumbs").attr("href", cid).ready();
			$(".Current_page a").attr('href', cid).ready();
			$(".Current_page").attr('name', cid);
			$(".Current_page").html(cname).css({
				"color": "#333333",
				"cursor": "default"
			}).ready();
			$("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display", "none").ready();
			$("#parentIfour").html('').css("display", "none").ready();
		}
	</script>
</head>
<body>
<div class="navbar navbar-default" id="navbar">
	<script type="text/javascript">
		try {
			ace.settings.check('navbar', 'fixed')
		} catch (e) {
		}
	</script>
	<div class="navbar-container" id="navbar-container">
		<div class="navbar-header pull-left">
			<a href="#" class="navbar-brand">
				<small>
					<img src="images/logo.png" width="470px">
				</small>
			</a><!-- /.brand -->
		</div><!-- /.navbar-header -->
		<div class="navbar-header operating pull-left">

		</div>
		<div class="navbar-header pull-right" role="navigation">
			<ul class="nav ace-nav">
				<li class="light-blue">
					<a data-toggle="dropdown" href="#" class="dropdown-toggle">
						<span class="time"><em id="time"></em></span><span
							class="user-info"><small>欢迎光临,</small>超级管理员</span>
						<i class="icon-caret-down"></i>
					</a>
					<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
						<li><a href="javascript:void(0)" name="Systems.html" title="系统设置" class="iframeurl"><i
								class="icon-cog"></i>网站设置</a></li>
						<li><a href="javascript:void(0)" name="admin_info.html" title="个人信息" class="iframeurl"><i
								class="icon-user"></i>个人资料</a></li>
						<li class="divider"></li>
						<li><a href="javascript:ovid(0)" id="Exit_system"><i class="icon-off"></i>退出</a></li>
					</ul>
				</li>
				<li class="purple">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#"><i class="icon-bell-alt"></i><span
							class="badge badge-important">8</span></a>
					<ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header"><i class="icon-warning-sign"></i>8条通知</li>
						<li>
							<a href="#">
								<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-pink icon-comments-alt"></i>
												最新消息
											</span>
									<span class="pull-right badge badge-info">+12</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<i class="btn btn-xs btn-primary icon-user"></i>
								切换为编辑登录..
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-success icon-shopping-cart"></i>
												新订单
											</span>
									<span class="pull-right badge badge-success">+8</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-info icon-twitter"></i>
												用户消息
											</span>
									<span class="pull-right badge badge-info">+11</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								查看所有通知
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>
			</ul>
			<!-- <div class="right_info">

           <div class="get_time" ><span id="time" class="time"></span>欢迎光临,管理员</span></div>
            <ul class="nav ace-nav">
                <li><a href="javascript:ovid(0)" class="change_Password">修改密码</a></li>
                <li><a href="javascript:ovid(0)" id="Exit_system">退出系统</a></li>

            </ul>
        </div>-->
		</div>
	</div>
</div>
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try {
			ace.settings.check('main-container', 'fixed')
		} catch (e) {
		}
	</script>
	<div class="main-container-inner">
		<a class="menu-toggler" id="menu-toggler" href="#">
			<span class="menu-text"></span>
		</a>
		<div class="sidebar" id="sidebar">
			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'fixed')
				} catch (e) {
				}
			</script>

			<!-- #sidebar-shortcuts -->
			<div id="menu_style" class="menu_style">
				<ul class="nav nav-list" id="nav_list">
					<li class="home"><a href="javascript:void(0)" name="home.html" class="iframeurl" title=""><i
							class="icon-home"></i><span
							class="menu-text"> 系统首页 </span></a></li>
					<li><a href="#" class="dropdown-toggle"><i class="icon-group"></i><span
							class="menu-text"> 用户管理 </span><b class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="administrator.html" title="用户维护"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>用户维护</a></li>
							<li class="home"><a href="javascript:void(0)" name="Brand_Manage.html" title="角色维护"
												class="iframeurl"><i class="icon-double-angle-right"></i>角色维护</a></li>
							<li class="home"><a href="javascript:void(0)" name="admin_Competence.html" title="权限维护"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>权限维护</a></li>

						</ul>
					</li>
					<li>
						<a href="#" class="dropdown-toggle"><i class="icon-picture "></i><span
								class="menu-text"> 景点管理 </span><b class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="advertising.html" title="景点维护"
												class="iframeurl"><i class="icon-double-angle-right"></i>景点维护</a></li>
							<li class="home"><a href="javascript:void(0)" name="Orderform.html" title="订单维护"
												class="iframeurl"><i class="icon-double-angle-right"></i>订单维护</a></li>
							<li class="home"><a href="javascript:void(0)" name="Guestbook.html" title="评论维护"
												class="iframeurl"><i class="icon-double-angle-right"></i>评论维护</a></li>
						</ul>
					</li>
					<li>
						<a href="#" class="dropdown-toggle"><i class="icon-list"></i><span
								class="menu-text"> 机票管理 </span><b class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="transaction.html" title="航空公司维护"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>航空公司维护</a></li>
							<li class="home"><a href="javascript:void(0)" name="Order_Chart.html" title="航班维护"
												class="iframeurl"><i class="icon-double-angle-right"></i>航班维护</a></li>
							<!-- <li class="home"><a href="javascript:void(0)" name="Orderform.html" title="订单管理"  class="iframeurl"><i class="icon-double-angle-right"></i>订单管理</a></li>
            <li class="home"><a href="javascript:void(0)" name="Amounts.html" title="交易金额"  class="iframeurl"><i class="icon-double-angle-right"></i>交易金额</a></li>
            <li class="home"><a href="javascript:void(0)" name="Order_handling.html" title="订单处理"  class="iframeurl"><i class="icon-double-angle-right"></i>订单处理</a></li>
              <li class="home"><a href="javascript:void(0)" name="Refund.html" title="退款管理"  class="iframeurl"><i class="icon-double-angle-right"></i>退款管理</a></li> -->
						</ul>
					</li>
					<li>
						<a href="#" class="dropdown-toggle"><i class="icon-credit-card"></i><span class="menu-text"> 支付管理 </span><b
								class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="Cover_management.html" title="账户管理"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>账户管理</a></li>
							<li class="home"><a href="javascript:void(0)" name="payment_method.html" title="支付方式"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>支付方式</a></li>
							<li class="home"><a href="javascript:void(0)" name="Payment_Configure.html" title="支付配置"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>支付配置</a></li>
						</ul>
					</li>
					<li><a href="#" class="dropdown-toggle"><i class="icon-bookmark"></i><span
							class="menu-text"> 旅游攻略管理 </span><b
							class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="article_list.html" title="文章列表"
												class="iframeurl"><i class="icon-double-angle-right"></i>文章列表</a></li>
							<li class="home"><a href="javascript:void(0)" name="article_Sort.html" title="分类管理"
												class="iframeurl"><i class="icon-double-angle-right"></i>分类管理</a></li>
						</ul>
					</li>

					<li><a href="#" class="dropdown-toggle"><i class="icon-comments-alt"></i><span class="menu-text"> 消息管理 </span><b
							class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="advertising.html" title="首页轮播图维护"
												class="iframeurl"><i class="icon-double-angle-right"></i>首页轮播图维护</a>
							</li>
							<li class="home"><a href="javascript:void(0)" name="Feedback.html" title="消息推送"
												class="iframeurl"><i class="icon-double-angle-right"></i>消息推送</a></li>
						</ul>
					</li>

					<li><a href="#" class="dropdown-toggle"><i class="icon-cogs"></i><span
							class="menu-text"> 系统管理 </span><b class="arrow icon-angle-down"></b></a>
						<ul class="submenu">
							<li class="home"><a href="javascript:void(0)" name="Systems.html" title="系统设置"
												class="iframeurl"><i class="icon-double-angle-right"></i>系统设置</a></li>
							<li class="home"><a href="javascript:void(0)" name="System_section.html" title="系统栏目管理"
												class="iframeurl"><i
									class="icon-double-angle-right"></i>系统栏目管理</a></li>

							<li class="home"><a href="javascript:void(0)" name="System_Logs.html" title="系统日志"
												class="iframeurl"><i class="icon-double-angle-right"></i>系统日志</a></li>
						</ul>
					</li>

				</ul>
			</div>
			<script type="text/javascript">
				$("#menu_style").niceScroll({
					cursorcolor: "#888888",
					cursoropacitymax: 1,
					touchbehavior: false,
					cursorwidth: "5px",
					cursorborder: "0",
					cursorborderradius: "5px"
				});
			</script>
			<div class="sidebar-collapse" id="sidebar-collapse">
				<i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
				   data-icon2="icon-double-angle-right"></i>
			</div>
			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'collapsed')
				} catch (e) {
				}
			</script>
		</div>
	</div>
</div>
</body>
</html>
